import requests

headers = {
    'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36',
    'Referer':'https://xueqiu.com/',
    'Cookie':'acw_tc=276077b017083473917102361e87a44b7bf03c7496355536798889507c3b76; xq_a_token=f5e826d5be1c4265b380bc7d743963f24729480d; xqat=f5e826d5be1c4265b380bc7d743963f24729480d; xq_r_token=276e026a754b9a09bd76b733aa3ae41ab08ac00b; xq_id_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1aWQiOi0xLCJpc3MiOiJ1YyIsImV4cCI6MTcwOTc3MjM1MSwiY3RtIjoxNzA4MzQ3MzYyNjM3LCJjaWQiOiJkOWQwbjRBWnVwIn0.K6gOm5cCR1nLvOraSgGKJWnKvXwnw0SqjptDK9bOZwCl7gQEYXCFPlG-2IPXz71ISnnzTYohjcqs7GWwtXjln-GwXZh01oy1Ia7VrUbi25ZyCm8f4lP_FutuEGS0W73L4p8AMlDIUIo1AQlhDopuaXjpEozMILsb2cvhnqoilmbXlhteAGTnH-FYx5jGytrfor9a56L03HPraBBKY2RX2pqAKhKC6-biC6e9DzqAb5_juLmMZwm6T1WVjuks6ltINOZ2zKVVfITdACCmivZW9WAXGTyUZLe-SaVHd8Wm8bKShtPyGZJ9WPHJLVWTNeemwYLr4bqbmP2qmG4fxAliGw; cookiesu=881708347391719; u=881708347391719; Hm_lvt_1db88642e346389874251b5a1eded6e3=1708347391; device_id=fb38c123b438e55fe08805c17a05cf65; Hm_lpvt_1db88642e346389874251b5a1eded6e3=1708347669'
}
url = 'https://xueqiu.com/statuses/hot/listV2.json?since_id=-1&max_id=596226&size=15'
res = requests.get(url, headers=headers)
print(res.content.decode())